package edu.buu.refectory.dao;

import java.util.List;
import java.util.Map;

import edu.buu.refectory.annotation.MyBatisRepository;
import edu.buu.refectory.domain.User;

@MyBatisRepository
public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> getList(Map map);

	/**
	 * @param username 
	 * @return
	 */
	List<User> getByUsername(String username);
    
}